home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / ASRegistry.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  12KB  |  331 lines

  1. /*
  2.      File:        ASRegistry.h
  3.  
  4.      Contains:    AppleScript Registry constants.
  5.  
  6.      Version:    Technology:    AppleScript 1.1
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __ASREGISTRY__
  19. #define __ASREGISTRY__
  20.  
  21. #ifndef __APPLEEVENTS__
  22. #include <AppleEvents.h>
  23. #endif
  24. #ifndef __AEREGISTRY__
  25. #include <AERegistry.h>
  26. #endif
  27. #ifndef __AEOBJECTS__
  28. #include <AEObjects.h>
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. #if PRAGMA_IMPORT_SUPPORTED
  36. #pragma import on
  37. #endif
  38.  
  39. #if PRAGMA_ALIGN_SUPPORTED
  40. #pragma options align=mac68k
  41. #endif
  42.  
  43. #if FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE
  44.  
  45. enum {
  46.     keyAETarget                    = 'targ',                        /*  0x74617267  */
  47.     keySubjectAttr                = 'subj',                        /*  0x7375626a  */
  48.                                                                 /* Magic 'returning' parameter: */
  49.     keyASReturning                = 'Krtn',                        /*  0x4b72746e  */
  50.                                                                 /* AppleScript Specific Codes: */
  51.     kASAppleScriptSuite            = 'ascr',                        /*  0x61736372  */
  52.     kASTypeNamesSuite            = 'tpnm',                        /*  0x74706e6d  */
  53.                                                                 /* dynamic terminologies */
  54.     typeAETE                    = 'aete',                        /*  0x61657465  */
  55.     typeAEUT                    = 'aeut',                        /*  0x61657574  */
  56.     kGetAETE                    = 'gdte',                        /*  0x67647465  */
  57.     kGetAEUT                    = 'gdut',                        /*  0x67647574  */
  58.     kUpdateAEUT                    = 'udut',                        /*  0x75647574  */
  59.     kUpdateAETE                    = 'udte',                        /*  0x75647465  */
  60.     kCleanUpAEUT                = 'cdut',                        /*  0x63647574  */
  61.     kASComment                    = 'cmnt',                        /*  0x636d6e74  */
  62.     kASLaunchEvent                = 'noop',                        /*  0x6e6f6f70  */
  63.     keyScszResource                = 'scsz',                        /*  0x7363737A  */
  64.     typeScszResource            = 'scsz',                        /*  0x7363737A  */
  65.                                                                 /* subroutine calls */
  66.     kASSubroutineEvent            = 'psbr',                        /*  0x70736272  */
  67.     keyASSubroutineName            = 'snam'                        /*  0x736e616d  */
  68. };
  69.  
  70. /* Operator Events: */
  71.  
  72. enum {
  73.                                                                 /* Binary: */
  74.     kASAdd                        = '+   ',                        /*  0x2b202020  */
  75.     kASSubtract                    = '-   ',                        /*  0x2d202020  */
  76.     kASMultiply                    = '*   ',                        /*  0x2a202020  */
  77.     kASDivide                    = '/   ',                        /*  0x2f202020  */
  78.     kASQuotient                    = 'div ',                        /*  0x64697620  */
  79.     kASRemainder                = 'mod ',                        /*  0x6d6f6420  */
  80.     kASPower                    = '^   ',                        /*  0x5e202020  */
  81.     kASEqual                    = kAEEquals,
  82.     kASNotEqual                    = '!=   ',                        /*  0xad202020  */
  83.     kASGreaterThan                = kAEGreaterThan,
  84.     kASGreaterThanOrEqual        = kAEGreaterThanEquals,
  85.     kASLessThan                    = kAELessThan,
  86.     kASLessThanOrEqual            = kAELessThanEquals,
  87.     kASComesBefore                = 'cbfr',                        /*  0x63626672  */
  88.     kASComesAfter                = 'cafr',                        /*  0x63616672  */
  89.     kASConcatenate                = 'ccat',                        /*  0x63636174  */
  90.     kASStartsWith                = kAEBeginsWith,
  91.     kASEndsWith                    = kAEEndsWith,
  92.     kASContains                    = kAEContains
  93. };
  94.  
  95.  
  96. enum {
  97.     kASAnd                        = kAEAND,
  98.     kASOr                        = kAEOR,                        /* Unary: */
  99.     kASNot                        = kAENOT,
  100.     kASNegate                    = 'neg ',                        /*  0x6e656720  */
  101.     keyASArg                    = 'arg '                        /*  0x61726720  */
  102. };
  103.  
  104.  
  105. enum {
  106.                                                                 /* event code for the 'error' statement */
  107.     kASErrorEventCode            = 'err ',                        /*  0x65727220  */
  108.     kOSAErrorArgs                = 'erra',                        /*  0x65727261  */
  109.                                                                 /* Properties: */
  110.     pLength                        = 'leng',                        /*  0x6c656e67  */
  111.     pReverse                    = 'rvse',                        /*  0x72767365  */
  112.     pRest                        = 'rest',                        /*  0x72657374  */
  113.     pInherits                    = 'c@#^',                        /*  0x6340235e  */
  114.                                                                 /* User-Defined Record Fields: */
  115.     keyASUserRecordFields        = 'usrf',                        /*  0x75737266  */
  116.     typeUserRecordFields        = typeAEList
  117. };
  118.  
  119. /* Prepositions: */
  120.  
  121. enum {
  122.     keyASPrepositionAt            = 'at  ',                        /*  0x61742020  */
  123.     keyASPrepositionIn            = 'in  ',                        /*  0x696e2020  */
  124.     keyASPrepositionFrom        = 'from',                        /*  0x66726f6d  */
  125.     keyASPrepositionFor            = 'for ',                        /*  0x666f7220  */
  126.     keyASPrepositionTo            = 'to  ',                        /*  0x746f2020  */
  127.     keyASPrepositionThru        = 'thru',                        /*  0x74687275  */
  128.     keyASPrepositionThrough        = 'thgh',                        /*  0x74686768  */
  129.     keyASPrepositionBy            = 'by  ',                        /*  0x62792020  */
  130.     keyASPrepositionOn            = 'on  ',                        /*  0x6f6e2020  */
  131.     keyASPrepositionInto        = 'into',                        /*  0x696e746f  */
  132.     keyASPrepositionOnto        = 'onto',                        /*  0x6f6e746f  */
  133.     keyASPrepositionBetween        = 'btwn',                        /*  0x6274776e  */
  134.     keyASPrepositionAgainst        = 'agst',                        /*  0x61677374  */
  135.     keyASPrepositionOutOf        = 'outo',                        /*  0x6f75746f  */
  136.     keyASPrepositionInsteadOf    = 'isto',                        /*  0x6973746f  */
  137.     keyASPrepositionAsideFrom    = 'asdf',                        /*  0x61736466  */
  138.     keyASPrepositionAround        = 'arnd',                        /*  0x61726e64  */
  139.     keyASPrepositionBeside        = 'bsid',                        /*  0x62736964  */
  140.     keyASPrepositionBeneath        = 'bnth',                        /*  0x626e7468  */
  141.     keyASPrepositionUnder        = 'undr'                        /*  0x756e6472  */
  142. };
  143.  
  144.  
  145. enum {
  146.     keyASPrepositionOver        = 'over',                        /*  0x6f766572  */
  147.     keyASPrepositionAbove        = 'abve',                        /*  0x61627665  */
  148.     keyASPrepositionBelow        = 'belw',                        /*  0x62656c77  */
  149.     keyASPrepositionApartFrom    = 'aprt',                        /*  0x61707274  */
  150.     keyASPrepositionGiven        = 'givn',                        /*  0x6769766e  */
  151.     keyASPrepositionWith        = 'with',                        /*  0x77697468  */
  152.     keyASPrepositionWithout        = 'wout',                        /*  0x776f7574  */
  153.     keyASPrepositionAbout        = 'abou',                        /*  0x61626f75  */
  154.     keyASPrepositionSince        = 'snce',                        /*  0x736e6365  */
  155.     keyASPrepositionUntil        = 'till'                        /*  0x74696c6c  */
  156. };
  157.  
  158.  
  159. enum {
  160.                                                                 /* Terminology & Dialect things: */
  161.     kDialectBundleResType        = 'Dbdl',                        /*  0x4462646c  */
  162.                                                                 /* AppleScript Classes and Enums: */
  163.     cConstant                    = typeEnumerated,
  164.     cClassIdentifier            = pClass,
  165.     cObjectBeingExamined        = typeObjectBeingExamined,
  166.     cList                        = typeAEList,
  167.     cSmallReal                    = typeSMFloat,
  168.     cReal                        = typeFloat,
  169.     cRecord                        = typeAERecord,
  170.     cReference                    = cObjectSpecifier,
  171.     cUndefined                    = 'undf',                        /*  0x756e6466  */
  172.     cSymbol                        = 'symb',                        /*  0x73796d62  */
  173.     cLinkedList                    = 'llst',                        /*  0x6c6c7374  */
  174.     cVector                        = 'vect',                        /*  0x76656374  */
  175.     cEventIdentifier            = 'evnt',                        /*  0x65766e74  */
  176.     cKeyIdentifier                = 'kyid',                        /*  0x6b796964  */
  177.     cUserIdentifier                = 'uid ',                        /*  0x75696420  */
  178.     cPreposition                = 'prep',                        /*  0x70726570  */
  179.     cKeyForm                    = enumKeyForm,
  180.     cScript                        = 'scpt',                        /*  0x73637074  */
  181.     cHandler                    = 'hand',                        /*  0x68616e64  */
  182.     cProcedure                    = 'proc'                        /*  0x70726f63  */
  183. };
  184.  
  185.  
  186. enum {
  187.     cClosure                    = 'clsr',                        /*  0x636c7372  */
  188.     cRawData                    = 'rdat',                        /*  0x72646174  */
  189.     cString                        = typeChar,
  190.     cStringClass                = typeChar,
  191.     cNumber                        = 'nmbr',                        /*  0x6e6d6272  */
  192.     cListOrRecord                = 'lr  ',                        /*  0x6c722020  */
  193.     cListOrString                = 'ls  ',                        /*  0x6c732020  */
  194.     cListRecordOrString            = 'lrs ',                        /*  0x6c727320  */
  195.     cNumberOrDateTime            = 'nd  ',                        /*  0x6e642020  */
  196.     cNumberDateTimeOrString        = 'nds ',                        /*  0x6e647320  */
  197.     cSeconds                    = 'scnd',                        /*  0x73636e64  */
  198.     enumBooleanValues            = 'boov',                        /*  0x626f6f76  */
  199.     kAETrue                        = typeTrue,
  200.     kAEFalse                    = typeFalse,
  201.     enumMiscValues                = 'misc',                        /*  0x6d697363  */
  202.     kASCurrentApplication        = 'cura',                        /*  0x63757261  */
  203.                                                                 /* User-defined property ospecs: */
  204.     formUserPropertyID            = 'usrp'                        /*  0x75737270  */
  205. };
  206.  
  207.  
  208. enum {
  209.                                                                 /* Global properties: */
  210.     pASIt                        = 'it  ',                        /*  0x69742020  */
  211.     pASMe                        = 'me  ',                        /*  0x6d652020  */
  212.     pASResult                    = 'rslt',                        /*  0x72736c74  */
  213.     pASSpace                    = 'spac',                        /*  0x73706163  */
  214.     pASReturn                    = 'ret ',                        /*  0x72657420  */
  215.     pASTab                        = 'tab ',                        /*  0x74616220  */
  216.     pASPi                        = 'pi  ',                        /*  0x70692020  */
  217.     pASParent                    = 'pare',                        /*  0x70617265  */
  218.     kASInitializeEventCode        = 'init',                        /*  0x696e6974  */
  219.     pASPrintLength                = 'prln',                        /*  0x70726c6e  */
  220.     pASPrintDepth                = 'prdp',                        /*  0x70726470  */
  221.     pASTopLevelScript            = 'ascr'                        /*  0x61736372  */
  222. };
  223.  
  224.  
  225. enum {
  226.                                                                 /* Considerations */
  227.     kAECase                        = 'case',                        /*  0x63617365  */
  228.     kAEDiacritic                = 'diac',                        /*  0x64696163  */
  229.     kAEWhiteSpace                = 'whit',                        /*  0x77686974  */
  230.     kAEHyphens                    = 'hyph',                        /*  0x68797068  */
  231.     kAEExpansion                = 'expa',                        /*  0x65787061  */
  232.     kAEPunctuation                = 'punc',                        /*  0x70756e63  */
  233.     kAEZenkakuHankaku            = 'zkhk',                        /*  0x7a6b686b  */
  234.     kAESmallKana                = 'skna',                        /*  0x736b6e61  */
  235.     kAEKataHiragana                = 'hika',                        /*  0x68696b61  */
  236.                                                                 /* AppleScript considerations: */
  237.     kASConsiderReplies            = 'rmte',                        /*  0x726d7465  */
  238.     enumConsiderations            = 'cons'                        /*  0x636f6e73  */
  239. };
  240.  
  241.  
  242. enum {
  243.     cCoercion                    = 'coec',                        /*  0x636f6563  */
  244.     cCoerceUpperCase            = 'txup',                        /*  0x74787570  */
  245.     cCoerceLowerCase            = 'txlo',                        /*  0x74786c6f  */
  246.     cCoerceRemoveDiacriticals    = 'txdc',                        /*  0x74786463  */
  247.     cCoerceRemovePunctuation    = 'txpc',                        /*  0x74787063  */
  248.     cCoerceRemoveHyphens        = 'txhy',                        /*  0x74786879  */
  249.     cCoerceOneByteToTwoByte        = 'txex',                        /*  0x74786578  */
  250.     cCoerceRemoveWhiteSpace        = 'txws',                        /*  0x74787773  */
  251.     cCoerceSmallKana            = 'txsk',                        /*  0x7478736b  */
  252.     cCoerceZenkakuhankaku        = 'txze',                        /*  0x74787a65  */
  253.     cCoerceKataHiragana            = 'txkh',                        /*  0x74786b68  */
  254.                                                                 /* Lorax things: */
  255.     cZone                        = 'zone',                        /*  0x7a6f6e65  */
  256.     cMachine                    = 'mach',                        /*  0x6d616368  */
  257.     cAddress                    = 'addr',                        /*  0x61646472  */
  258.     cRunningAddress                = 'radd',                        /*  0x72616464  */
  259.     cStorage                    = 'stor'                        /*  0x73746f72  */
  260. };
  261.  
  262.  
  263. enum {
  264.                                                                 /* DateTime things: */
  265.     pASWeekday                    = 'wkdy',                        /*  0x776b6479  */
  266.     pASMonth                    = 'mnth',                        /*  0x6d6e7468  */
  267.     pASDay                        = 'day ',                        /*  0x64617920  */
  268.     pASYear                        = 'year',                        /*  0x79656172  */
  269.     pASTime                        = 'time',                        /*  0x74696d65  */
  270.     pASDateString                = 'dstr',                        /*  0x64737472  */
  271.     pASTimeString                = 'tstr',                        /*  0x74737472  */
  272.                                                                 /* Months */
  273.     cMonth                        = pASMonth,
  274.     cJanuary                    = 'jan ',                        /*  0x6a616e20  */
  275.     cFebruary                    = 'feb ',                        /*  0x66656220  */
  276.     cMarch                        = 'mar ',                        /*  0x6d617220  */
  277.     cApril                        = 'apr ',                        /*  0x61707220  */
  278.     cMay                        = 'may ',                        /*  0x6d617920  */
  279.     cJune                        = 'jun ',                        /*  0x6a756e20  */
  280.     cJuly                        = 'jul ',                        /*  0x6a756c20  */
  281.     cAugust                        = 'aug ',                        /*  0x61756720  */
  282.     cSeptember                    = 'sep ',                        /*  0x73657020  */
  283.     cOctober                    = 'oct ',                        /*  0x6f637420  */
  284.     cNovember                    = 'nov ',                        /*  0x6e6f7620  */
  285.     cDecember                    = 'dec '                        /*  0x64656320  */
  286. };
  287.  
  288.  
  289. enum {
  290.                                                                 /* Weekdays */
  291.     cWeekday                    = pASWeekday,
  292.     cSunday                        = 'sun ',                        /*  0x73756e20  */
  293.     cMonday                        = 'mon ',                        /*  0x6d6f6e20  */
  294.     cTuesday                    = 'tue ',                        /*  0x74756520  */
  295.     cWednesday                    = 'wed ',                        /*  0x77656420  */
  296.     cThursday                    = 'thu ',                        /*  0x74687520  */
  297.     cFriday                        = 'fri ',                        /*  0x66726920  */
  298.     cSaturday                    = 'sat ',                        /*  0x73617420  */
  299.                                                                 /* AS 1.1 Globals: */
  300.     pASQuote                    = 'quot',                        /*  0x71756f74  */
  301.     pASSeconds                    = 'secs',                        /*  0x73656373  */
  302.     pASMinutes                    = 'min ',                        /*  0x6d696e20  */
  303.     pASHours                    = 'hour',                        /*  0x686f7572  */
  304.     pASDays                        = 'days',                        /*  0x64617973  */
  305.     pASWeeks                    = 'week',                        /*  0x7765656b  */
  306.                                                                 /* Writing Code things: */
  307.     cWritingCodeInfo            = 'citl',                        /*  0x6369746c  */
  308.     pScriptCode                    = 'pscd',                        /*  0x70736364  */
  309.     pLangCode                    = 'plcd',                        /*  0x706c6364  */
  310.                                                                 /* Magic Tell and End Tell events for logging: */
  311.     kASMagicTellEvent            = 'tell',                        /*  0x74656c6c  */
  312.     kASMagicEndTellEvent        = 'tend'                        /*  0x74656e64  */
  313. };
  314.  
  315. #endif
  316.  
  317. #if PRAGMA_ALIGN_SUPPORTED
  318. #pragma options align=reset
  319. #endif
  320.  
  321. #if PRAGMA_IMPORT_SUPPORTED
  322. #pragma import off
  323. #endif
  324.  
  325. #ifdef __cplusplus
  326. }
  327. #endif
  328.  
  329. #endif /* __ASREGISTRY__ */
  330.  
  331.